//
//  HNSalesManCycleDetailResourcerModel.m
//  优学荟管理系统
//
//  Created by edz on 2017/11/7.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "HNSalesManCycleDetailResourcerModel.h"

@implementation HNSalesManCycleDetailResourcerModel

// 实例化
- (instancetype)init_ValuForKeyWithDict:(NSDictionary *)Dict {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:Dict];
    }
    return self;
}

// KVO
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"users"]) {
        
        [value enumerateObjectsUsingBlock:^(NSDictionary * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
            
            [self.TitleArr addObject:obj[@"petName"]];
        }];
    }
}

- (NSMutableArray *)TitleArr {
    
    if (!_TitleArr) {
        
        _TitleArr = [NSMutableArray array];
    }
    return _TitleArr;
}

@end
